﻿/*!
 * Bootstrap-submenu v2.0.4 (https://vsn4ik.github.io/bootstrap-submenu/)
 * Copyright 2014-2016 Vasily A. (https://github.com/vsn4ik)
 * Licensed under the MIT license
 */




/* 1. Variables less */
@import "/Style Library/plantilla/fonts/font-face.css";
@import "/Style Library/plantilla/estilos/less/vars.less";
/*-------------------------------------------------------------------------------------------------------*/
/*--------------------------------------2. MENU PRINCIPAL --------------------------------------------------*/
/*-------------------------------------- ---------------------------------------------------------------------*/


.dropdown-submenu>a::after {
    content: "";
}

#s4-bodyContainer {
    padding-bottom: 0px;
    overflow-x: hidden;
    overflow-y: visible;
}

#MenuPrincipal {
    background-color: @grisMenu;
	border-bottom: 3px solid @azulMenu;
    box-sizing: content-box;
    nav {
        //background-color: @azulMenu;
        position: relative;
        min-height: 40px;
        height: 40px;
        margin-bottom: 0px;
        border: 0px solid rgba(0, 0, 0, 0.15);

        .navbar-nav>li>a {
			font-family: @worksans-medium;
            color: @negroFuente;
            display: inline-block;
            font-weight: normal;
            padding: 10px 0px 12px 0px;
            span.menu-item-text {
				font-family: @worksans-medium;
                color: @negroFuente;
				&:hover{
					color: #fff;
					font-family: @worksans-semibold;
                    text-decoration: underline;
				}
            }

            a:visited span.menu-item-text {
                color: @avisited;
            }

        }
        .navbar-nav>li.intro{
            background-color: @azulMenu;
            >a.textItemMenuPdre  {
                background-color: @azulMenu;
                color: #fff;
                span.menu-item-text {
                    font-family: @worksans-medium;
                    color: #fff;
                    background-color: @azulMenu !important;
                }
    
            }
        }
    }
    #menuGeneralSharepoint {
        display: flex;
        > li.dropdown {
            display: flex;
            font-family: @worksans-medium;
            border-right: 0px solid rgba(0, 0, 0, 0.15);
            padding-left: 15px;
            padding-right: 8px;
            font-size: 14px;
            line-height: 24px;
            letter-spacing: 0.4px;
			                     
            &:hover, &.open, &.open > a , &.open a:hover, &.open a:focus {
                background-color: @azulMenu !important;  
                .menu-item-text{
                    color: #fff;                    
                    font-family: @worksans-semibold;
                    text-decoration: underline;
                }
            } 

            .OpenMenuPadre {
                padding: 10px 0px 8px 4px !important;
				&:focus, 
				&hover{
					background: transparent;
					border: none;
					white-space: initial;
					white-space: normal;
				}
            }
            .caret {
                margin-left: 3px;
                vertical-align: middle;
                border-top: 0px dashed !important;
                border-right: 0px solid transparent !important;
                border-left: 0px solid transparent !important;
                background-image: url('/Style Library/plantilla/imagenes/fle-menudown.svg');
                height: 14px;
                width: 12px;
                background-repeat: no-repeat;
                filter: invert(27%) sepia(6%) saturate(13%) hue-rotate(321deg) brightness(92%) contrast(83%);
            }

            &.intro {
                background-color: @azulMenu;
                color: #fff;
                &:first-child a:hover span.menu-item-text, a span.menu-item-text{
                    background-color: @azulMenu;
                    color: #fff !important;
                } 
                a.textItemMenuPdre span.menu-item-text{
                    color: #fff !important;
                }             
            }
            .dropdown-menu {
				background-color: @grisMenu;
                color: @negroFuente;
				width: 257px;
				padding: 0px 0;
				border: 0px solid rgba(0, 0, 0, 0.15);
				line-height: 24px;
				letter-spacing: 0.4px;
                li {
                    a {
						height: auto;
                        padding: 8px 12px 8px 13px;
                        font-family: @worksans-medium;
                        overflow: hidden;
                        white-space: normal;
                        &:hover, &focus{
                            color: #fff;
                            font-family: @worksans-medium;
                            text-decoration: underline;
                        }
                        &::after {
                            float: right;
                            margin-right: -10px;
                            background-image: url('/Style Library/plantilla/imagenes/fle-menudown.svg');
                            height: 14px;
                            width: 12px;
                            background-repeat: no-repeat;
                            transform: rotate(270deg);
                            -webkit-transform: rotate(270deg);
                            -moz-transform: rotate(270deg);
                            filter: invert(27%) sepia(6%) saturate(13%) hue-rotate(321deg) brightness(92%) contrast(83%);
                        }
                    }
                    &:hover, &focus{
                        color: #fff;
                        font-family: @worksans-medium;
                        text-decoration: underline;
                    }                  
                }
                > .dropdown-submenu {
                    position: relative;
                    background-color: @grisMenu;
                    color: @negroFuente;
                    a.OpenMenu.dropdown-submenu {
                        position: absolute;
                        right: 0px;
                        top: 0px;
                        span#caretRight {
                            background-image: url('/Style Library/plantilla/imagenes/fle-menudown.svg');
                            height: 16px;
                            width: 14px;
                            background-repeat: no-repeat;
                        }
                    }
                    &.open, &:hover, &.open > a{
                        background-color: @azulMenu;
                        color: white;
                        text-decoration: underline;
                    }
                    &.open.dropdown-submenu{
                        background-color: @grisMenu;
                        color: @negroFuente;

                        
                    }
                    a.textItemMenu:after {
                        display: none;
            
                    }                    
                }


            }

        }

    }
	input[type=button]:hover,
    input[type=reset]:hover,
    input[type=submit]:hover,
    button:hover {
        border-color: #92c0e0;
        background-color: #e6f2fa;
        background-color: transparent !important;
        border: 0px !important;
    }

}



a.open.dropdown-submenu {
    position: absolute !important;
    right: 0;
    top: 4px;
}


.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    border-top-left-radius: 0;
}


.navbar-collapse {
    overflow-x: visible;
    padding-right: 0px;
    padding-left: 0px;
    border-bottom: 0px solid @flight-blue;
    -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
    -webkit-overflow-scrolling: touch;
    float: left !important;
    width: 100%;
}



@media (max-width: 1000px) {
    #MenuPrincipal{
        padding: 0;
        nav{
            &.container{
                padding: 0;
                >.navbar-collapse{
                    margin-left: 0;
                    margin-right: 0;
                }
            }
            .navbar-nav{
                margin: 0;
            }
            .navbar-toggle {
                display: block;
                img{
                    width: 30px;
                }
            }
        }
        #menuGeneralSharepoint{
            display: flex;
            flex-direction: column;
            >li.dropdown{
                display: flex;
                flex-direction: column;
                padding: 0;
                border-bottom: 1px solid @colorTextBlue;
                .open{
                    background-color: @grisMenu;
                }
                a.textItemMenuPdre {
                    padding-left: 15px;
                    padding-right: 15px;
                }
                .OpenMenuPadre {
                    padding: 15px !important;
                    right: 0;
                    position: absolute;
                    width: 50px;
                    height: 100%;
                    display: flex;
                    justify-content: flex-end;
                    align-items: center;
                }
                ul.dropdown-menu{
                    background-color: @grisMenu;
                    width: 100%;
                    position: relative;
                    box-shadow: none;
                    z-index: 1;
                    li{
                        background-color: @grisMenu;
                        a{
                            &::after{
                                margin-right: 0;
                            }
                        }
                    }
                }
            }

        }
    }
    #idiomamenu a:visited,
    #idiomamenu a:active {
        color: @colorTextBlue  !important;
    }

    .menubusqueda {
        margin-bottom: 20px;
        margin-top: 20px;
        width: 100%;
        height: 95px;
        display: flex;
        flex-wrap: nowrap;
        div#idiomamenu {
            width: 100%;
            height: 40px;
            display: inline-block;
            border-right: 0px solid @azulClaroaNegro;
            width: 35%;
            .idiomas {
                margin-top: 0px;
                text-align: center;
                height: 100%;
                display: flex;
                justify-content: space-evenly;
                align-items: center;
                div {
                    display: flex;
                    flex-grow: 1;
                    justify-content: center;
                    &:first-child{
                        border-right: 2px solid @colorWhite;
                    }

                }
                
            
         
        }
    }


    }
    .navbar-collapse.collapse.in {
        z-index: 1000;
    }
}
@media (min-width: 640px) and (max-width: 1000px) {
    .navbar-header {
        float: none;
    }

    .navbar-left,
    .navbar-right {
        float: none !important;
    }

    .navbar-fixed-top {
        top: 0;
        border-width: 0 0 1px;
    }

    .navbar-collapse.collapse {
        display: none !important;
    }

    .navbar-nav {
        float: none !important;
        margin-top: 7.5px;
    }

    .navbar-nav>li {
        float: none;
    }

    .navbar-nav>li>a {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .collapse.in {
        display: block !important;
        padding: 0px;
    }


    .cont_primerheader {
        display: none;
    }


    li.dropdown.intro {
        border-bottom: 0px solid @yellow  !important;
    }   
    .menubusqueda{
        height: 40px;
    }
    div#buscarmovil {
        display: flex;
        margin: 0;
        flex-grow: 1;
        padding: 0 15px 0 5px;
        .buscaHeader{
            width: 100%;
        }

    }
    .cont_primerheader {
        display: none;
    }
}
@media (max-width: 640px) {
    .menubusqueda {
        flex-wrap: wrap !;
        div#idiomamenu {
            width: 100%;
            height: 40px;
            display: inline-block;
            border-right: 0px solid @azulClaroaNegro;
            width: 100%;
        }
        div#buscarmovil {
            width: 100%;
            margin: 10px 15px;
        }
    }
}
